package com.genshang.restaurant.controller;


import com.genshang.restaurant.result.ResultBody;
import com.genshang.restaurant.service.IRecord1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Alex
 * @since 2020-09-25
 */
@RestController
@RequestMapping("/record")
public class Record1Controller {

    @Autowired
    private IRecord1Service record1Service;

    /**
     * 1. 获取积分比例接口
     * @return
     */
    @GetMapping("/getScoreRate")
    public ResultBody getRate() {
        return record1Service.getRate();
    }


}
